﻿define([], function () {
    return {
        defaultRoute: '/app/dashboard',
        routes: {
            '/': {
                templateUrl: '/tpl/admin/layout.html',
                url: '/',
                dependencies: ['controller/admin/appController']
            },
            'app': {
                templateUrl: '/tpl/admin/layout.html',
                url: '/app',
                dependencies: ['controller/admin/appController']
            },
            'app.dashboard': {
                templateUrl: '/tpl/admin/dashboard.html',
                url: '/dashboard'
            },
            'login': {
                templateUrl: '/tpl/admin/login.html',
                url: '/login',
                dependencies: ['controller/admin/accountController'],
                allowAnonymous: true
            },
            'app.distribution': {
                template: '<div ui-view></div>',
                url: '/distribution'
            },
            'app.distribution.productlist': {
                templateUrl: '/tpl/admin/distribution/distributionproduct_list.html',
                url: '/distributionproduct_list?sale_status',
                dependencies: ['controller/admin/distributionController']
            },
            'app.distribution.detail': {
                templateUrl: '/tpl/admin/distribution/distribution_detail.html',
                url: '/detail/:id',
                dependencies: ['controller/admin/distributionController']
            },
            'app.distribution.merchantlist': {
                templateUrl: '/tpl/admin/distribution/distributionmerchant_list.html',
                url: '/distributionmerchant_list?sale_status',
                dependencies: ['controller/admin/distributionController']
            },
            'app.distribution.product_remove': {
                templateUrl: '/tpl/admin/distribution/distribution_product_remove.html',
                url: '/distribution_product_remove',
                dependencies: ['controller/admin/distributionController']
            },
            'app.account': {
                template: '<div ui-view></div>',
                url: '/account'
            },
            'app.account.profile': {
                templateUrl: '/tpl/admin/account/profile.html',
                url: '/profile',
                dependencies: ['controller/admin/accountController'],
                allowAnonymous: true
            },
            'app.account.change_pwd': {
                templateUrl: '/tpl/admin/account/change_pwd.html',
                url: '/change_pwd',
                dependencies: ['controller/admin/accountController'],
                allowAnonymous: true
            },
            'app.manage': {
                template: '<div ui-view></div>',
                url: '/manage'
            },
            'app.manage.feature': {
                templateUrl: '/tpl/admin/manage/feature.html',
                url: '/feature?type',
                dependencies: ['controller/admin/featureController']
            },
            'app.manage.feature_detail': {
                templateUrl: '/tpl/admin/manage/feature_detail.html',
                url: '/feature/:action/:id?type&pid',
                dependencies: ['controller/admin/featureController']
            },
            'app.manage.send_content': {
                templateUrl: '/tpl/admin/manage/send_content.html',
                url: '/send_content/:type',
                dependencies: ['controller/admin/sendContentController']
            },
            'app.manage.setting': {
                templateUrl: '/tpl/admin/manage/setting.html',
                url: '/setting/:action',
                dependencies: ['controller/admin/settingController']
            },
            'app.manage.marchant': {
                templateUrl: '/tpl/admin/manage/marchant.html',
                url: '/manage/marchant',
                dependencies: ['controller/admin/manageController']
            },
            'app.manage.msg': {
                templateUrl: '/tpl/admin/manage/msg.html',
                url: '/msg',
                dependencies: ['controller/admin/msgController']
            },
            'app.manage.msg_detail': {
                templateUrl: '/tpl/admin/manage/msg_detail.html',
                url: '/msg/:action/:id',
                dependencies: ['controller/admin/msgController']
            },
            'app.manage.role': {
                templateUrl: '/tpl/admin/manage/role.html',
                url: '/role',
                dependencies: ['controller/admin/roleController'],
                allowAnonymous: true
            },
            'app.manage.role_detail': {
                templateUrl: '/tpl/admin/manage/role_detail.html',
                url: '/role/:action/:id',
                dependencies: ['controller/admin/roleController'],
                allowAnonymous: true
            },
            'app.manage.payment': {
                templateUrl: '/tpl/admin/manage/payment.html',
                url: '/payment',
                dependencies: ['controller/admin/paymentController'],
                allowAnonymous: true
            },
            'app.manage.payment_detail': {
                templateUrl: '/tpl/admin/manage/payment_detail.html',
                url: '/payment/:action/:id',
                dependencies: ['controller/admin/paymentController'],
                allowAnonymous: true
            },
            'app.manage.manage': {
                templateUrl: '/tpl/admin/manage/manage.html',
                url: '/manage',
                dependencies: ['controller/admin/manageController'],
                allowAnonymous: true
            },
            'app.manage.manage_detail': {
                templateUrl: '/tpl/admin/manage/manage_detail.html',
                url: '/manage/:action/:id',
                dependencies: ['controller/admin/manageController'],
                allowAnonymous: true
            },
            'app.merchant': {
                template: '<div ui-view></div>',
                url: '/merchant'
            },
            'app.merchant.list': {
                templateUrl: '/tpl/admin/merchant/merchant_list.html',
                url: '/list?page&merchant_no&parent_id&auth_status&mobile&nick&start_time&end_time&disabled&is_oem&is_platform&is_supplier&certify&open_wx',
                dependencies: ['controller/admin/merchantController']
            },
            'app.merchant.detail': {
                templateUrl: '/tpl/admin/merchant/detail.html',
                url: '/detail/:action/:id',
                dependencies: ['controller/admin/merchantController']
            },
            'app.merchant.native': {
                templateUrl: '/tpl/admin/merchant/native.html',
                url: '/native/:id',
                dependencies: ['controller/admin/merchantController']
            },
            'app.merchant.auth': {
                templateUrl: '/tpl/admin/merchant/auth.html',
                url: '/auth/:id',
                dependencies: ['controller/admin/merchantController']
            },
            'app.merchant.auth_list': {
                templateUrl: '/tpl/admin/merchant/auth_list.html',
                url: '/auth_list',
                dependencies: ['controller/admin/merchantController']
            },
            'app.merchant.grade': {
                templateUrl: '/tpl/admin/merchant/grade.html',
                url: '/grade/:id',
                dependencies: ['controller/admin/merchantController']
            },
            'app.merchant.grade_detail': {
                templateUrl: '/tpl/admin/merchant/grade_detail.html',
                url: '/grade_detail/:merchant_no/:id',
                dependencies: ['controller/admin/merchantController']
            },
            'app.merchant.inferiors': {
                templateUrl: '/tpl/admin/merchant/merchant_inferiors.html',
                url: '/inferiors?page&name&mobile&auth_status&disable&grade_id&start_time&end_time&parent_id',
                dependencies: ['controller/admin/merchantController']
            },
            'app.logistics': {
                template: '<div ui-view></div>',
                url: '/logistics'
            },
            'app.logistics.list': {
                templateUrl: '/tpl/admin/logistics/logistics_list.html',
                url: '/list?page&merchant_no&order_no&q&start_time&end_time&order_status',
                dependencies: ['controller/admin/logisticsController']
            },
            'app.logistics.splitplate': {
                templateUrl: '/tpl/admin/logistics/splitplate.html',
                url: '/splitplate/:id',
                dependencies: ['controller/admin/logisticsController']
            },
            'app.logistics.tidan': {
                templateUrl: '/tpl/admin/logistics/tidan.html',
                url: '/tidan/:id',
                dependencies: ['controller/admin/logisticsController']
            },
            'app.logistics.fillsingle': {
                templateUrl: '/tpl/admin/logistics/fill_single.html',
                url: '/fillsingle',
                dependencies: ['controller/admin/logisticsController']
            },
            'app.logistics.fillsplitplate': {
                templateUrl: '/tpl/admin/logistics/fill_split_plate.html',
                url: '/fillsplitplate',
                dependencies: ['controller/admin/logisticsController']
            },
            'app.logistics.select': {
                templateUrl: '/tpl/admin/logistics/select_paylist.html',
                url: '/selectlogistics',
                dependencies: ['controller/admin/logisticsController']
            },
            'app.logistics.addpayinfo': {
                templateUrl: '/tpl/admin/logistics/add_payinfo.html',
                url: '/addpayinfo',
                dependencies: ['controller/admin/logisticsController']
            },
            'app.logistics.splitplatelist': {
                templateUrl: '/tpl/admin/logistics/splitplate_list.html',
                url: '/splitplatelist',
                dependencies: ['controller/admin/logisticsController']
            },
            'app.logistics.detail': {
                templateUrl: '/tpl/admin/logistics/detail_list.html',
                url: '/detail/:id',
                dependencies: ['controller/admin/logisticsController']
            },
            'app.logistics.finishdeclare': {
                templateUrl: '/tpl/admin/logistics/finish_declare.html',
                url: '/finishdeclare/:id',
                dependencies: ['controller/admin/logisticsController']
            },
            'app.logistics.startflight': {
                templateUrl: '/tpl/admin/logistics/start_flight.html',
                url: '/startflight/:id',
                dependencies: ['controller/admin/logisticsController']
            },
            'app.order': {
                template: '<div ui-view></div>',
                url: '/order'
            },
            'app.order.token_list': {
                templateUrl: '/tpl/admin/order/token_order_list.html',
                url: '/token_order_list?page&merchant_no&order_no&q&start_time&end_time&order_status&push_status&order_type',
                dependencies: ['controller/admin/orderController']
            },
            'app.order.list': {
                templateUrl: '/tpl/admin/order/order_list.html',
                url: '/list?page&merchant_no&order_no&q&start_time&end_time&order_status&order_type',
                dependencies: ['controller/admin/orderController']
            },
            'app.order.detail': {
                templateUrl: '/tpl/admin/order/detail.html',
                url: '/detail?id',
                dependencies: ['controller/admin/orderController']
            },
            'app.order.shipping': {
                templateUrl: '/tpl/admin/order/order_shipping.html',
                url: '/shipping/:id',
                dependencies: ['controller/admin/orderController']
            },
            'app.order.position': {
                templateUrl: '/tpl/admin/order/shipping_position.html',
                url: '/position',
                dependencies: ['controller/admin/shippingController']
            },
            'app.order.position_detail': {
                templateUrl: '/tpl/admin/order/shipping_position_detail.html',
                url: '/position_detail/:id',
                dependencies: ['controller/admin/shippingController']
            },
            'app.order.refund': {
                templateUrl: '/tpl/admin/order/refund_list.html',
                url: '/refund?page&order_no&status&refund_mode&start_time&end_time&product_name&buyer&ship_to&cell_phone',
                dependencies: ['controller/admin/orderController']
            },
            'app.product': {
                template: '<div ui-view></div>',
                url: '/product'
            },
            'app.product.list': {
                templateUrl: '/tpl/admin/product/product_list.html',
                url: '/list?sale_status&page&keyword&sku&is_htl',
                dependencies: ['controller/admin/productController']
            },
            'app.product.obtained_list': {
                templateUrl: '/tpl/admin/product/product.html',
                url: '/obtained_list?sale_status&page&keyword&audit_status',
                dependencies: ['controller/admin/productController']
            },
            'app.product.sale_list': {
                templateUrl: '/tpl/admin/product/product_sale.html',
                url: '/obtained_list?sale_status&page&keyword&audit_status',
                dependencies: ['controller/admin/productController']
            },
            'app.product.detail': {
                templateUrl: '/tpl/admin/product/product_detail.html',
                url: '/detail/:action/:id',
                dependencies: ['controller/admin/productController']
            },
            'app.product.sale_stop': {
                templateUrl: '/tpl/admin/product/product_list.html',
                url: '/list?sale_status',
                dependencies: ['controller/admin/productController']
            },
            'app.product.audit': {
                templateUrl: '/tpl/admin/product/product_list.html',
                url: '/list?audit_status',
                dependencies: ['controller/admin/productController']
            },
            'app.product.audit_detail': {
                templateUrl: '/tpl/admin/product/product_audit.html',
                url: '/audit/:action/:id',
                dependencies: ['controller/admin/productController']
            },
            'app.product.audit_stop': {
                templateUrl: '/tpl/admin/product/product_list.html',
                url: '/list?audit_status',
                dependencies: ['controller/admin/productController']
            },
            'app.product.sku': {
                templateUrl: '/tpl/admin/sku/sku_list.html',
                url: '/sku',
                dependencies: ['controller/admin/skuController']
            },
            'app.product.sku_detail': {
                templateUrl: '/tpl/admin/sku/sku_detail.html',
                url: '/sku/add/:id',
                dependencies: ['controller/admin/skuController']
            },
            'app.product.category': {
                templateUrl: '/tpl/admin/category/category.html',
                url: '/category',
                dependencies: ['controller/admin/categoryController']
            },
            'app.product.category_detail': {
                templateUrl: '/tpl/admin/category/category_detail.html',
                url: '/category/:action/:id',
                dependencies: ['controller/admin/categoryController']
            },
            'app.product.topic': {
                templateUrl: '/tpl/admin/topic/topic_list.html',
                url: '/topic',
                dependencies: ['controller/admin/topicController']
            },
            'app.product.topic_detail': {
                templateUrl: '/tpl/admin/topic/topic_detail.html',
                url: '/particulars/:action/:id',
                dependencies: ['controller/admin/topicController']
            },
            'app.bill': {
                template: '<div ui-view></div>',
                url: '/bill'
            },
            'app.bill.list': {
                templateUrl: '/tpl/admin/bill/bill_list.html',
                url: '/bill?page&merchant_id&merchant_no&name&mobile&is_oem',
                dependencies: ['controller/admin/billController']
            },
            'app.bill.detail': {
                templateUrl: '/tpl/admin/bill/bill_detail.html',
                url: '/bill_detail/:id',
                dependencies: ['controller/admin/billController']
            },
            'app.bill.recharge': {
                templateUrl: '/tpl/admin/bill/bill_recharge.html',
                url: '/bill_recharge/:id',
                dependencies: ['controller/admin/billController']
            },
        }
    };
});